﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallDataBase.DTO
{
    /// <summary>
    /// 查询条件对象
    /// </summary>
    public class SQLQueryDTO
    {
        public SQLQueryDTO(string name, object value, SQLOperators @operator)
        {
            Operator = @operator;
            Value = value;
            Name = name;
        }

        public SQLOperators Operator { get;private set; }

        public string Name { get; private set; }

        public object Value { get; private set; }

        
    }

    public enum SQLOperators
    {
        Like,
        Unequal,
        Equal,
        GreaterThan,
        GreaterThanEqual,
        LessThan,
        LessThanEqual
    }
}
